package com.example.iotmanagerment26.service;

import com.example.iotmanagerment26.domain.User;
import com.example.iotmanagerment26.domain.vo.UserCard;
import com.example.iotmanagerment26.domain.vo.UserOprecordVO;

import java.util.List;

public interface UserService {
    User selectUserByName(String userName);

    List<User> selectAllUser();

    int insertUser(User user);

    int deleteUserById(int id);

    int updatePasswordByName(String name, String password);

    User login(User user);

    UserCard selectUserWithCardById(int id);

    List<UserCard> selectAllUserWithCard();

    UserOprecordVO selectUserOprecordsById(int id);

    List<User> selectAllUserByPower(String power);
}
